//
//  ProductPlanCell.m
//  Valuate
//
//  Created by mac on 16/3/15.
//  Copyright (c) 2016年 mac. All rights reserved.
//

#import "ProductPlanCell.h"
@interface ProductPlanCell()
@property (weak, nonatomic) IBOutlet UIImageView *statusImageView;
/** titleLabel */
@property (weak, nonatomic) UILabel * statusLabel;
@end
@implementation ProductPlanCell

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
    
    
    dispatch_async(dispatch_get_main_queue(), ^{
        UILabel * statusLabel = ({
            UILabel * label = [[UILabel alloc] init];
            /** GPU 优化 */
            //        label.opaque = YES;
            //        label.backgroundColor = [UIColor blackColor];
            //        label.layer.masksToBounds = YES;
            //------------------------------
            label.numberOfLines = 0;
            label.textColor = [UIColor yellowColor];
            label.textAlignment = NSTextAlignmentCenter;
            label.text = @"未提交";
            label.font = [UIFont systemFontOfSize:9];
            
            label.frame = CGRectMake(5, -5, self.statusImageView.frame.size.width, self.statusImageView.frame.size.height);
            label.transform = CGAffineTransformMakeRotation(M_PI_4);
            [self.statusImageView addSubview:label];
            
            
            label;
        });
        self.statusLabel = statusLabel;
    });
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
